<me:UIBH x:Class="WPFExcelReport.TSBS04"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
                      xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    xmlns:TXT="clr-namespace:WPFExcelReport;assembly=TTXTIND"  
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIBH.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIBH.Resources>
    <WrapPanel>
        <Button  Grid.Column="1" Click="ManageCommand" Width="12" Height="20" 
                 HorizontalAlignment="Left">
            <Button.Background>
                <ImageBrush  ImageSource="/ImagePackage;component/Images/Extend.png" />
            </Button.Background>
        </Button>
        <ComboBox   DropDownOpened="ComboBox_DropDownOpened" 
            Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}"
             Width="100"  
             SelectedValuePath="KEY"
             DisplayMemberPath="KEY"
             ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}" 
             IsSynchronizedWithCurrentItem="True" 
             ScrollViewer.HorizontalScrollBarVisibility="Visible"
            >
        </ComboBox>
        <TextBlock Text="{Binding DES, Source={StaticResource ResourceKey=vwMaster}}" 
                   Visibility="{Binding IsEdit,ElementName=TV, Converter={StaticResource nbv}}"
                   Width="100"
                   />
    </WrapPanel>
</me:UIBH>

    
